<?php
/*Problem Domain
To create a database access layer for TrainingSession class
*/

/*
SessionDAO is an interface
interp. represents the database access layer interface(functionality) for Session class
*/

interface SessionDAO
{
	/*Session -> boolean
	purpose. To save or update a given Session and return true on success , false otherwise*/
	public function saveOrUpdate($session);

	/*Session -> boolean
	purpose. To remove an existing Session and return true on success , false otherwise*/
	public function remove($session);

	/*void -> ListUserType
	purpose. produces the entire list of Sessions*/
	public function listSessions();

	public function getSession($sess_id);
}
?>
